package com.alibaba.cloud.base.business.user.dao;

import com.alibaba.cloud.base.business.user.domain.LoginUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface LoginUserDao extends BaseMapper<LoginUser> {

    LoginUser getLoginUser(@Param("userId") String userId);

    List<LoginUser> getLoginUserByUsername(@Param("username") String username);

    void registerLoginUser(LoginUser user);

    LoginUser loginUser(@Param("user") LoginUser user);

    void updateLoginUser(@Param("user") LoginUser user);

    void updateLoginUserByUsername(@Param("user") LoginUser user);
}
